applyTemplate

abstract suspend fun applyTemplate(template: String)

Applies the contents of the given template scene to the currently loaded scene. This loads the template scene while keeping the design unit and page dimensions of the current scene. The content of the pages is automatically adjusted to fit the new dimensions.

Parameters

template

the template scene file contents, a base64 string.


abstract suspend fun applyTemplate(templateUri: Uri)

Applies the contents of the given template scene to the currently loaded scene. This loads the template scene while keeping the design unit and page dimensions of the current scene. The content of the pages is automatically adjusted to fit the new dimensions.

Parameters

templateUri

the resource of the template scene file.